home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / libraries / nonvolatile.i < prev    next >
Text File  |  1993-10-15  |  2KB  |  67 lines

  1.     IFND LIBRARIES_NONVOLATILE_I
  2. LIBRARIES_NONVOLATILE_I SET 1
  3. **
  4. **    $VER: nonvolatile.i 40.10 (3.8.93)
  5. **    Includes Release 40.15
  6. **
  7. **    nonvolatile.library interface structures and definitions.
  8. **
  9. **    (C) Copyright 1992-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. **
  12.  
  13. ;---------------------------------------------------------------------------
  14.  
  15.     IFND EXEC_TYPES_I
  16.     INCLUDE "exec/types.i"
  17.     ENDC
  18.  
  19.     IFND EXEC_NODES_I
  20.     INCLUDE "exec/nodes.i"
  21.     ENDC
  22.  
  23. ;---------------------------------------------------------------------------
  24.  
  25.    STRUCTURE NVInfo,0
  26.     ULONG    nvi_MaxStorage
  27.     ULONG    nvi_FreeStorage
  28.    LABEL NVINFO_SIZE
  29.  
  30. ;---------------------------------------------------------------------------
  31.  
  32.    STRUCTURE NVEntry,0
  33.     STRUCT    nve_Node,MLN_SIZE
  34.     APTR    nve_Name
  35.     ULONG    nve_Size
  36.     ULONG    nve_Protection
  37.    LABEL NVENTRY_SIZE
  38.  
  39. ;---------------------------------------------------------------------------
  40.  
  41. ; Bit definitions for mask in SetNVProtection(). Also used for
  42. ; NVEntry.nve_Protection.
  43.  
  44.     BITDEF    NVE,DELETE,0
  45.     BITDEF    NVE,APPNAME,31
  46.  
  47. ;---------------------------------------------------------------------------
  48.  
  49. ; errors from StoreNV()
  50. NVERR_BADNAME    equ 1
  51. NVERR_WRITEPROT equ 2
  52. NVERR_FAIL    equ 3
  53. NVERR_FATAL    equ 4
  54.  
  55.  
  56. ;---------------------------------------------------------------------------
  57.  
  58. ; determines the size of data returned by this library
  59. SizeNVData    MACRO    ;DataPtr SizeReg
  60.         move.l    -4(/1),/2
  61.         subq.l    #4,/2
  62.         ENDM
  63.  
  64. ;---------------------------------------------------------------------------
  65.  
  66.     ENDC ; LIBRARIES_NONVOLATILE_I
  67.